﻿@using KL.Store.Core;
@{
    var anaDizin = "/ReportPanel/";
}

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title | eStore Report Panel</title>
    <link href="~/Content/bootstrap.min.css" rel="stylesheet" />
    <link href="~/Content/jquery.datetimepicker.css" rel="stylesheet" />
    <link href="~/Content/ReportPanel/stylesheet.css" rel="stylesheet" />
    <link href="~/Content/ReportPanel/jquery.fileupload.css" rel="stylesheet" />
    <link href="@Url.Content("~/Content/font-awesome.min.css")" rel="stylesheet" />
    <link href="@Url.Content("~/Content/livesearch.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/" + Parameters.Theme + "/fancybox/jquery.fancybox.css")" rel="stylesheet" />
    <script src="@(Parameters.WebSiteScriptUrl)@Url.Content("~/scripts/jquery-1.7.1.min.js")" type="text/javascript"></script>
    <script src="@(Parameters.WebSiteScriptUrl)@Url.Content("~/Scripts/jquery.fancybox.js")" type="text/javascript"></script>
    <script src="@(Parameters.WebSiteScriptUrl)@Url.Content("~/Scripts/jquery.a11yTree.js")" type="text/javascript"></script>
    <script src="@(Parameters.WebSiteScriptUrl)@Url.Content("~/scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"></script>
    <script src="@(Parameters.WebSiteScriptUrl)@Url.Content("~/scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@(Parameters.WebSiteScriptUrl)@Url.Content("~/scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    <script src="@(Parameters.WebSiteScriptUrl)@Url.Content("~/Scripts/jquery.knob.js")" type="text/javascript"></script>
    <script src="@(Parameters.WebSiteScriptUrl)@Url.Content("~/Scripts/jquery.ui.widget.js")" type="text/javascript"></script>
    <script src="@(Parameters.WebSiteScriptUrl)@Url.Content("~/Scripts/jquery.iframe-transport.js")" type="text/javascript"></script>
    <script src="@(Parameters.WebSiteScriptUrl)@Url.Content("~/Scripts/jquery.fileupload.js")" type="text/javascript"></script>
    <script src="@(Parameters.WebSiteScriptUrl)@Url.Content("~/Scripts/ckeditor/ckeditor.js")" type="text/javascript"></script>
    <meta name="viewport" content="width=device-width" />
    <meta name="language" content="Turkish">
    <meta name="content-language" content="tr-TR" />
</head>
<body>
    <aside class="col-sm-3 col-md-2 first last">
        <h1>eStore Report Panel<span class="hidden-md hidden-lg">&nbsp;<a href="javascript:void(0);" class="menuOC"><i class="fa fa-bars"></i></a></span></h1>
        <nav>
            <ul>
                <li>
                    <a href="@(anaDizin)"><i class="glyphicon glyphicon-dashboard"></i>Dashboard</a>
                </li>
                <li>
                    <a href="@(anaDizin)LookSales"><i class="glyphicon glyphicon-th-list"></i>Satış Listesi</a>
                </li>
                <li>
                    <a href="@(anaDizin)CriticalStocks"><i class="glyphicon glyphicon-exclamation-sign"></i>Kritik Stoklar</a>
                </li>
                <li>
                    <a href="@(anaDizin)TotalStocks"><i class="glyphicon glyphicon-briefcase"></i>Stok Toplam Raporu</a>
                </li>
                <li>
                    <a href="@(anaDizin)CCProcess"><i class="glyphicon glyphicon-credit-card"></i>Kredi Kartı İşlemleri</a>
                </li>
                <li>
                    <a href="@(anaDizin)SalesList"><i class="glyphicon glyphicon-tags"></i>Sipariş İşlemleri(Satış)</a>
                </li>
                <li>
                    <a href="@(anaDizin)Kategori"><i class="glyphicon glyphicon-th-list"></i>Kategori Düzenleme</a>
                </li>
                <li>
                    <a href="@(anaDizin)Stok"><i class="glyphicon glyphicon-th"></i>Stok İşlemleri</a>
                    <ul class="submenu">
                        <li>
                            <a href="@(anaDizin)Stokfiltre"><i class="glyphicon glyphicon-th"></i>Filtreleyerek Gözat</a>
                        </li>
                        <li>
                            <a href="@(anaDizin)StokCokluIslem"><i class="glyphicon glyphicon-th"></i>Çoklu İşlem</a>
                        </li>
                        <li>
                            <a href="@(anaDizin)StokExport"><i class="glyphicon glyphicon-th"></i>Stok Export</a>
                        </li>
                    </ul>
                </li>
                <li>
                    <a href="@(anaDizin)Banner"><i class="glyphicon glyphicon-picture"></i>Banner İşlemleri</a>
                </li>
            </ul>
        </nav>
    </aside>
    <div id="ReportContent" class="col-sm-12 col-md-10 first last right">
        <header class="col-xs-12">
            <ul class="left">
                <li>
                    <a href="javascript:void(0);" class="menuOC"><i class="fa fa-bars fa-lg"></i></a>
                </li>
            </ul>
            <ul class="right">
                <li>
                    <a href="/ReportPanel/"><i class="fa fa-dashboard"></i>&nbsp;Dashboard</a>
                </li>
                <li>
                    <a href="/" target="_blank"><i class="fa fa-home"></i>&nbsp;Siteye Git</a>
                </li>
                <li>
                    <a href="/Account/Logoff"><i class="fa fa-sign-out"></i>&nbsp;Çıkış Yap</a>
                </li>
            </ul>
        </header>
        <article class="col-xs-12">
            @RenderBody()
        </article>
    </div>
    <script src="~/Scripts/bootstrap.js"></script>
    <script src="~/Scripts/jquery.datetimepicker.js"></script>
    <script src="~/Scripts/jquery.maskedinput.min.js"></script>
    <script src="~/Scripts/modernizr.min.js"></script>
    <script src="~/Scripts/respond.js"></script>
    <script src="~/Scripts/scrollToTop.js"></script>
    <script src="~/Scripts/jquery-ui-1.10.4.min.js"></script>
    <script src="~/Scripts/reportpanel.scripts.js"></script>
    <script type="text/javascript">
        $(document).ready(function ()
        {
            $('#datetimepicker1').datetimepicker({
                //format: "d.m.Y H:i:s"
            });
            $('#datetimepicker2').datetimepicker({
            });
            $('.datetimepicker').datetimepicker({
                //format: "d.m.Y H:i:s"
            });
            //format: "d.m.Y H:i:s"
            if ($(document).width() <= 768)
            {
                opened = false
                hideMenu();
            }
            $('aside nav ul li').each(function ()
            {
                if ($(this).find('ul').size() > 0)
                {
                    $(this).prepend('<i class="menuexpander glyphicon glyphicon-chevron-down"></i>');
                }
            });
        });
        var opened = true;

        $('.menuOC').click(function ()
        {
            if (opened)
            {
                hideMenu();
                opened = false;
            }
            else
            {
                showMenu();
                opened = true;
            }
        });

        function hideMenu()
        {
            $('aside').hide("slide",
                     { direction: "left" }, 500);
            $('#ReportContent').attr("class", "col-sm-12 col-md-12 first last");
            $('#saledetailscontent').attr("class", "col-sm-12 col-md-12");
            $('#categoryEdit').attr("class", "col-sm-12 col-md-12  last");
            $('#bannerEdit').attr("class", "col-sm-12 col-md-12 first last");
        }
        function showMenu()
        {
            $('aside').show("slide",
                     { direction: "left" }, 500);
            $('#ReportContent').attr("class", "col-sm-12 col-md-10 first last right");
            $('#saledetailscontent').attr("class", "col-sm-12 col-md-10 right");
            $('#categoryEdit').attr("class", "col-sm-12 col-md-10 right  last");
            $('#bannerEdit').attr("class", "col-sm-12 col-md-10 right first last");
        }
        function expandSection(item)
        {
            $('' + item + '').find('.hideOnMobile').toggle();
        }
        $('.menuexpander').live('click', function ()
        {
            $(this).parent().find('ul').toggle('normal');
            if ($(this).hasClass('glyphicon-chevron-down'))
            {
                $(this).removeClass('glyphicon-chevron-down');
                $(this).addClass('glyphicon-chevron-up');
            }
            else
            {
                $(this).removeClass('glyphicon-chevron-up');
                $(this).addClass('glyphicon-chevron-down');
            }
        });

        function loadingMsg()
        {
            $('#processResult').show(0).html('<div class="bg-info loadingMsg"><p><i class="fa fa-spinner fa-spin"></i>&nbsp;Lütfen bekleyin.</p></div>');
        }
        function loadingMsg2(msg)
        {
            $('#processResult').show(0).html('<div class="bg-info loadingMsg"><p><i class="fa fa-spinner fa-spin"></i>&nbsp;' + msg + '</p></div>');
        }
        function hataMesaji(mesaj)
        {
            $('#processResult').show(0).html('<div class="bg-danger"><p><i class="fa fa-info-circle"></i>&nbsp;' + mesaj + '.</p></div>');
        }
        $('#processResult').live('click', function ()
        {
            $(this).fadeOut('slow').html('');
        });
        $(window).scroll(function ()
        {
            if ($(window).scrollTop() > 60)
            {
                $('#processResult').css('position', 'fixed');
            }
            else
            {
                $('#processResult').css('position', 'absolute');
            }
        });
    </script>
</body>
</html>
